<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" import="java.util.Date"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<jsp:include page="/WEB-INF/pages/checkLogin.jsp" />

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	Welcome, you have logined <s:property value="%{#session.screen_name}"/>
	<br/>
	<br />
  <b>Session Time: </b><%= new Date(session.getLastAccessedTime())%>
  
	<s:url action="page2.action" namespace="/main/landing" var="urlTag" >
	</s:url>
	<s:a href="%{urlTag}">page2 (via %)</s:a>
	<s:a action="page2.action" namespace="/main/landing">page2 (just use s:a)</s:a>
 
  <br />
	<s:a href="logout">logout</s:a> <%= session.getId() %> <s:property value="%{#session.logged_in}"/>

	<s:property value="link"/>
</body>
</html>